@@ -128,7 +128,7 @@ def pre_new_models(fpath='./pre/static/models_20180816.xls'): |
||
128 | 128 |
nrows = sheet.nrows |
129 | 129 |
for idx in range(1, nrows): |
130 | 130 |
rvals = sheet.row_values(idx) |
131 |
- print rvals |
|
131 |
+ print(rvals) |
|
132 | 132 |
|
133 | 133 |
jancode = strip(rvals[0]) |
134 | 134 |
if not jancode: |
@@ -159,18 +159,18 @@ def pre_adaptive_cameras(fpath=u'./pre/static/腾龙镜头适用机型V1.xlsx'): |
||
159 | 159 |
for sheet in sheets: |
160 | 160 |
model_name = sheet.name |
161 | 161 |
model_full_name = sheet.row_values(2)[0] |
162 |
- print model_name, model_full_name |
|
162 |
+ print(model_name, model_full_name) |
|
163 | 163 |
nrows = sheet.nrows |
164 | 164 |
for idx in range(4, nrows): |
165 | 165 |
rvals = sheet.row_values(idx) |
166 |
- print rvals |
|
166 |
+ print(rvals) |
|
167 | 167 |
for val in rvals: |
168 | 168 |
val = strip(val) |
169 | 169 |
if not val: |
170 | 170 |
continue |
171 | 171 |
if u'卡口' in val: |
172 | 172 |
continue |
173 |
- print val |
|
173 |
+ print(val) |
|
174 | 174 |
ModelCameraBodyInfo.objects.get_or_create( |
175 | 175 |
brand_id=settings.KODO_DEFAULT_BRAND_ID, |
176 | 176 |
brand_name=settings.KODO_DEFAULT_BRAND_NAME, |
@@ -15,7 +15,7 @@ WECHAT = settings.WECHAT |
||
15 | 15 |
|
16 | 16 |
|
17 | 17 |
def fetch_users_func(authorizer_appid, infos): |
18 |
- print authorizer_appid, infos |
|
18 |
+ print(authorizer_appid, infos) |
|
19 | 19 |
openids = infos.get('data', {}).get('openid', []) |
20 | 20 |
for openid in openids: |
21 | 21 |
r1.rpushjson(SUBSCRIBE_USERINFO_LIST % authorizer_appid, { |
@@ -41,7 +41,7 @@ def zbar(path): |
||
41 | 41 |
def test_zbar(): |
42 | 42 |
# In[4]: test_zbar() |
43 | 43 |
# [u'189415'] |
44 |
- print zbar(settings.TESTING_ZBAR) |
|
44 |
+ print(zbar(settings.TESTING_ZBAR)) |
|
45 | 45 |
|
46 | 46 |
|
47 | 47 |
if __name__ == '__main__': |
@@ -28,4 +28,4 @@ def zbar2(path): |
||
28 | 28 |
def test_zbar2(): |
29 | 29 |
# In[5]: test_zbar() |
30 | 30 |
# [u'189415'] |
31 |
- print zbar2(settings.TESTING_ZBAR) |
|
31 |
+ print(zbar2(settings.TESTING_ZBAR)) |